package com.ruoyi.youtian.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 属性对象 attribute
 *
 * @author ruoyi
 * @date 2022-09-06
 */
public class Attribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long attributeId;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String attributeName;

    /** 属性字段 */
    @Excel(name = "属性字段")
    private String attributeColumn;

    /** 类型:工作区分类,设备分类,点位 */
    @Excel(name = "类型:工作区分类,设备分类,点位")
    private String type;

    /** 是否计算（0不计算 1计算） */
    @Excel(name = "是否计算", readConverterExp = "0=不计算,1=计算")
    private String countFlag;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setAttributeId(Long attributeId)
    {
        this.attributeId = attributeId;
    }

    public Long getAttributeId()
    {
        return attributeId;
    }
    public void setAttributeName(String attributeName)
    {
        this.attributeName = attributeName;
    }

    public String getAttributeName()
    {
        return attributeName;
    }
    public void setAttributeColumn(String attributeColumn)
    {
        this.attributeColumn = attributeColumn;
    }

    public String getAttributeColumn()
    {
        return attributeColumn;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setCountFlag(String countFlag)
    {
        this.countFlag = countFlag;
    }

    public String getCountFlag()
    {
        return countFlag;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attributeId", getAttributeId())
            .append("attributeName", getAttributeName())
            .append("attributeColumn", getAttributeColumn())
            .append("type", getType())
            .append("countFlag", getCountFlag())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
